<?php

namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Models\Activity;
use App\Models\Area;
use App\Models\Scene;
use App\Models\User;

class HomeController extends Controller
{
    public function index(){
        $userCount = User::get()->count();
        $areaCount = Area::get()->count();
        $activityCount = Activity::get()->count();
        $sceneCount = Scene::get()->count();
        return view('admin.home',['userCount'=>$userCount,'areaCount'=>$areaCount,'activityCount'=>$activityCount,'sceneCount'=>$sceneCount]);
    }
}
